package top.likeqc.service;

import top.likeqc.dto.PaperAnswerDTO;
import top.likeqc.dto.PaperAnswerDTO2;
import top.likeqc.entity.Answer;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 答案 服务类
 * </p>
 *
 * @author likeqc
 * @since 2022-04-16
 */
public interface IAnswerService extends IService<Answer> {

    /**
     * 答案
     * @param answerList
     */
    void edit(List<Answer> answerList);

    /**
     * 获取问卷的答题情况
     * @param paperId
     * @return
     */
    PaperAnswerDTO getPaperAnswerByPaperId(Long paperId);

    List<PaperAnswerDTO2> getPaperAnswerByPaperId2(Long paperId);
}
